from rest_framework.viewsets import ModelViewSet
from meiduo_admin.good import spu_specs_serializer
from goods.models import SPUSpecification
from meiduo_admin.my_paginate import MyPageNumberPagination


class SPUSpecsViewSet(ModelViewSet):
    pagination_class=MyPageNumberPagination
    serializer_class= spu_specs_serializer.SPUSpecsSerializer
    queryset=SPUSpecification.objects.all()
